package com.example.entity.parent;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;
import java.util.Date;

@Data
@MappedSuperclass
public class Parent {

    @Id
    @Column(name = "id", length = 30)
    public String id;

    @Column(name = "create_at")
    public Date createAt;

    @Column(name = "create_by")
    public String createBy;

    @Column(name = "update_at")
    public Date updateAt;

    @Column(name = "update_by")
    public String updateBy;

    @Transient
    public String createAtFormat;

    @Transient
    public String updateAtFormat;

    @Column(name = "is_del")
    public boolean isDel;
}
